package com.googlecode.kipler.container.dl;

import com.googlecode.kipler.common.Copyable;

/**
 * 
 * @author İnanç Seylan
 *
 */
public class IndividualNameManager implements Copyable<IndividualNameManager> {

	private int lastIndividualNo;

	public String generateIndividualName() {
		return " x" + (lastIndividualNo++);
	}
	
	public void reset() {
		lastIndividualNo = 0;
	}

	@Override
	public IndividualNameManager copy() {
		IndividualNameManager copy = new IndividualNameManager();
		copy.lastIndividualNo = this.lastIndividualNo;
		return copy;
	}
}
